﻿namespace Notifications.Templates.WinRT
{
    using System.Xml.Serialization;

    [XmlType("binding")]
    public sealed class Binding
    {
        [XmlAttribute(AttributeName = "template")]
        public string Template { get; set; }

        [XmlElement(ElementName = "image")]
        public Image[] Images { get; set; }

        [XmlElement(ElementName = "text")]
        public Text[] Texts { get; set; }

        public static Binding CreateTileSquarePeekImageAndText02()
        {
            return new Binding
            {
                Template = "TileSquarePeekImageAndText02",
                Images = new[] { new Image { Id = 1 } },
                Texts = new[] { new Text { Id = 1 }, new Text { Id = 2 } },
            };
        }

        public static Binding CreateTileWideImageAndText01()
        {
            return new Binding
            {
                Template = "TileWideImageAndText01",
                Images = new[] { new Image { Id = 1 } },
                Texts = new[] { new Text { Id = 1 } },
            };
        }
    }
}
